package org.zebra.common.exception;

/**
 * @author zhanghongbin
 */
public final class ResultException extends RuntimeException {

    /**
     * 响应码
     */
    private int code;
    /**
     * 提示信息
     */
    private String msg;

    public ResultException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
